TEMPLATE = app
TARGET = endogame

DEFINES -= UNICODE

QMAKE_CXXFLAGS += -std=c++11

LIBS *= -lOgreBulletDynamics -lOgreBulletCollisions
LIBS *= -lBulletDynamics -lBulletCollision -lLinearMath -lConvexDecomposition -lBulletSoftBody
LIBS *= -lOgreMain -lOIS -lOgreOverlay -lboost_system -LOGRE -lOgreTerrain

QT += widgets opengl

unix {
    INCLUDEPATH += /usr/local/include/OGRE
    INCLUDEPATH += /usr/local/include/bullet
    INCLUDEPATH += /usr/local/include/OgreBullet
    INCLUDEPATH += /usr/local/include/OgreBullet/Collisions
    INCLUDEPATH += /usr/local/include/OgreBullet/Dynamics
    INCLUDEPATH += /usr/include/ois
    CONFIG += link_pkgconfig
    PKGCONFIG += OGRE
}
win32 {
    LIBS *= user32.lib
    LIBS += -L$(OGRE_HOME)\\boost\\lib
    release:LIBS += -L$(OGRE_HOME)\\lib\\release
    debug:LIBS += -L$(OGRE_HOME)\\lib\\debug
    INCLUDEPATH += $(OGRE_HOME)\\include
    INCLUDEPATH += $(OGRE_HOME)\\include\\OIS
    INCLUDEPATH += $(OGRE_HOME)\\include\\OGRE
    INCLUDEPATH += $(OGRE_HOME)\\boost
    INCLUDEPATH += $(OGRE_HOME)\\include\\OGRE\\Overlay
}
debug {
    TARGET = $$join(TARGET,,,d)
}

HEADERS += \
    ../../Source/input.h \
    ../../Source/QtOgreApplication.h \
    ../../Source/statemanager.h \
    ../../Source/strings.h \
    ../../Source/GameWidget.h \
    ../../Source/player.h \
    ../../Source/overlay.h \
    ../../Source/world.h \
    ../../Source/physicsmanager.h \
    ../../Source/GameObject.h \
    ../../Source/StaticGameObject.h \
    ../../Source/MovableGameObject.h \
    ../../Source/rapidxml.hpp \
    ../../Source/obstacles.h \
    ../../Source/ObstacleLoader.h

SOURCES += \
    ../../Source/input.cpp \
    ../../Source/main.cpp \
    ../../Source/QtOgreApplication.cpp \
    ../../Source/statemanager.cpp \
    ../../Source/GameWidget.cpp \
    ../../Source/player.cpp \
    ../../Source/overlay.cpp \
    ../../Source/world.cpp \
    ../../Source/physicsmanager.cpp \
    ../../Source/GameObject.cpp \
    ../../Source/StaticGameObject.cpp \
    ../../Source/MovableGameObject.cpp \
    ../../Source/obstacles.cpp \
    ../../Source/ObstacleLoader.cpp

OTHER_FILES += \
    ../../Resources/Bloodgutter_2000.ttf \
    ../../Resources/Bloodgutter2k.fontdef

FORMS += \
    ../../Source/mainwindow.ui \
    ../../Source/settings.ui
